/*
 * @Author: wangyu
 * @Date: 2024-12-25 15:04:18
 * @LastEditTime: 2024-12-25 18:35:55
 * @LastEditors: wangyu
 * @Description: 接口列表
 * @FilePath: \dzsq-smartpark-platform\src\apis\common.js
 */
import { request } from "@/axios";

export const loginIn = (params) => {
  return request("/login", "post", params, {
    "Content-Type": "application/application/json; charset=UTF-10",
  });
};
// 获取用户信息
export const getRoleKeyItems = () => {
  return request("/bigScreen/annualAnalysis/get33618RoleKey", "get", null, {
    "Content-Type": "application/application/json; charset=UTF-10",
    // 'Authorization': token
  });
};

// 获取高德地图天气
export const getWeatherInfo = () => {
  const params = {
    key: "3ce36ee1da022132a7683f544b592415",
    city: "500111",
    extensions: "base",
    output: "JSON",
  };
  return request(
    "https://restapi.amap.com/v3/weather/weatherInfo",
    "get",
    params,
    {
      "Content-Type": "application/application/json; charset=UTF-10",
      // 'Authorization': token
    }
  );
};
